#ifndef PLAYPAGEWIDGET_H
#define PLAYPAGEWIDGET_H

#include <QWidget>
#include <QUrl>
namespace Ui {
class PlayPageWidget;
}

class PlayPageWidget : public QWidget
{
    Q_OBJECT

public:
    explicit PlayPageWidget(QWidget *parent = nullptr);
    ~PlayPageWidget();
    void movePage();
    void updateCurrentSongImage(const QPixmap& image);
    void setAngleOfImage(qreal angle);
    void updateCurUrl(const QUrl& url);
    void setCurTime(qint64 time);

signals:
    void changeColor(const QString& color);

private slots:
    void on_pushButton_clicked();

private:
    QColor color;
    bool _isUp = false;
    bool _isMoving = false;
    QPixmap _currentSongImage;
    QUrl _currentUrl;
    Ui::PlayPageWidget *ui;
};

#endif // PLAYPAGEWIDGET_H
